package com.fm.openinstall.model;

public class Error
{
    public static final int DATA_ERROR = -5;
    public static final int INIT_ERROR = -12;
    public static final int INIT_FAIL = -11;
    @Deprecated
    public static final int INVALID_INSTALL = -6;
    @Deprecated
    public static final int INVALID_INTENT = -7;
    public static final int NETWORK_NULL = -10;
    public static final int REQUEST_ERROR = -2;
    public static final int REQUEST_FAIL = -1;
    public static final int STATS_DISABLE = -20;
    public static final int TIMEOUT = -4;
    private int a;
    private String b;

    public Error() {
    }

    public Error(final int a, final String b) {
        this.a = a;
        this.b = b;
    }

    public int getErrorCode() {
        return this.a;
    }

    public String getErrorMsg() {
        return this.b;
    }

    public void setErrorCode(final int a) {
        this.a = a;
    }

    public void setErrorMsg(final String b) {
        this.b = b;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("Error{errorCode=");
        sb.append(this.a);
        sb.append(", errorMsg='");
        sb.append(this.b);
        sb.append('\'');
        sb.append('}');
        return sb.toString();
    }
}
